import request from '@/utils/request'

// 查询综合绩效-担任职务列表
export function listServing(query) {
  return request({
    url: '/teacher/serving/list',
    method: 'get',
    params: query
  })
}

// 查询综合绩效-担任职务详细
export function getServing(id) {
  return request({
    url: '/teacher/serving/' + id,
    method: 'get'
  })
}

// 新增综合绩效-担任职务
export function addServing(data) {
  return request({
    url: '/teacher/serving/add',
    method: 'post',
    data: data
  })
}

// 修改综合绩效-担任职务
export function updateServing(data) {
  return request({
    url: '/teacher/serving/update',
    method: 'post',
    data: data
  })
}

// 删除综合绩效-担任职务
export function delServing(id) {
  return request({
    url: '/teacher/serving/' + id,
    method: 'post'
  })
}
